package com.ocl.www.controller;

import org.apache.log4j.Logger;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

/**
 * Created by Administrator on 2017/6/17.
 */
@RestController
public class MsgController {

    private Logger logger = Logger.getLogger(MsgController.class);

    @RequestMapping(value = "/chatpage/{senderId}/{reciverId}",method= RequestMethod.GET,produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    public ModelAndView chatpage(@PathVariable String senderId,@PathVariable String reciverId){
        logger.info(senderId);
        ModelAndView mav = new ModelAndView("lanyou/contacts");
        return  mav;
    }
}
